<%@ page language="java" contentType="text/html; charset=UTF-8"%>
<%@ include file="/common/taglibs.jsp"%>
<%@ taglib prefix="product" tagdir="/WEB-INF/tags/product"%>
<%@ taglib prefix="system" tagdir="/WEB-INF/tags/system"%>
<product:productPriceForDetailPage productSku="${productSku}" multiple="true" hasPriceName="true"/>  

<c:if test="${productSku.wholesalePriceAvailable and not empty productSku.wholesalePrices}">
	<div class="price2">
		<dl class="clearfix">
			<dt><fmt:message key="productDetail.wholesalePrices" var="text"/><common:textAlignDecorator value="${text}"/>:</dt>
			<dd>
				<table cellspacing="0" cellpadding="0" border="0" width="100%">
					<tr>
						<th><fmt:message key="wholesalePrice.quantitySpan"/></th>
						<th><fmt:message key="wholesalePrice.price"/></tr>
					</th>	
					<c:forEach items="${productSku.wholesalePrices}" var="wholesalePrice">
						<tr>
							<td>${wholesalePrice.minQuantity} - ${wholesalePrice.maxQuantity}</td>
							<td><common:currencyFormat value="${wholesalePrice.price}"/></td>
						</tr>
					</c:forEach>
				</table>
			</dd>
		</dl>
	</div>	
</c:if>
